// 定义变量
$suspensionBoxBottom: var(--suspensionBoxBottom, 46px);
$suspensionBoxRight: var(--suspensionBoxRight, 46px);
$opMenuTop: var(--opMenuTop, 1);


.cursor {
  cursor: pointer;

  svg {
    width: 90%;
    height: 90%;
  }
}

.wrapper-box {
  padding: 15px;
  background: #F2F2F6;
  min-height: 650px;
  border-radius: 6px;
  font-size: 12px;
}

.goods-list-image {
  margin: 30px 0 60px 60px;

}

.mobile-nav {
  width: 375px;
  height: 567px;
  background-color: #fff;
  position: relative;

  .mobile-header-image {
    position: absolute;
    top: 0;
    width: 100%;
    left: 0;
  }

  .mobile-footer {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 50px;
    border-top: 1px solid #e3e2e5;
    display: flex;
    text-align: center;
    font-size: 12px;
    color: #595961;
    box-sizing: border-box;

    > div {
      flex: 1;

      .image {
        height: 24px;
        width: 24px;
        margin-top: 5px;
      }

      .icon-tab {
        font-size: 22px;
        margin-bottom: 5px;
        color: #c1c1c1;
      }
    }

    .menu-list-icon {
      margin-right: 4px;
    }

    .mode-type-1 {
      border-right: 1px solid #e3e2e5;

      &:first-child {
        width: 50px;
        flex-shrink: 0;
        flex: none;
      }
    }
  }
}

.mobile-config {
  width: 431px;
  margin-top: 30px;
  margin-left: 50px;
  margin-bottom: 60px;

  .is-main {
    margin-bottom: 10px;

    .is-main-title {
      margin-right: 30px;
    }

    .color-9797A1 {
      margin-left: 10px;
    }
  }

  .nav-tip {
    margin-bottom: 11px;
    background: #fff7ee;
    border: 1px solid #ffe6c6;
    border-radius: 4px;
    color: #595961;
    font-size: 12px;
    line-height: 20px;
    padding: 10px 18px;
    white-space: pre-wrap;
  }

  .bg-white-panel {
    padding: 10px;
    background: #fff;
    border-radius: 4px;
    margin-bottom: 10px;
  }

  .menu-model {
    .el-icon-arrow-right {
      font-size: 16px;
      margin-left: 15px;
    }
  }

  .pa-title {
    margin-right: 20px;
  }

  .select-color {
    background: #fff;
    border-radius: 4px;
    width: 100px;
    height: 30px;
    line-height: 30px;
    position: relative;
    cursor: pointer;

    .color-circle {
      border-radius: 8px;
      width: 16px;
      height: 16px;
      position: relative;

      &:first-child {
        background: #ff5050;
        border: 2px solid #fff;
        margin-left: 5px;
      }
    }

    .main-color {
      font-size: 12px;
      color: #595961;
      margin-left: 5px;
    }
  }
}

.nav-item {
  font-size: 12px;
  background: #fff;
  border: 1px solid #e3e2e5;
  border-radius: 4px;
  margin-bottom: 10px;
  //width: 210px;
  width: 100%;
  display: inline-block;

  &:nth-child(odd) {
    margin-right: 10px;
  }

  .item-header {
    background: #efefef;
    border-radius: 4px 4px 0 0;
    height: 39px;
    line-height: 39px;
    padding: 0 19px 0 9px;
  }

  .item-content {
    padding: 10px 0;
  }
}

.selected-demo {
  margin-right: 10px;
  margin-top: 5px;
  height: 25px;
  width: 25px;
  border: 1px solid #e3e2e5;
  // border: 1px solid #1890ff;
  border-radius: 4px;
  text-align: center;
  font-size: 24px;

  .icon-img {
    font-size: 24px;
    margin-top: 5px;
  }
}

.selected {
  border: 1px solid #1890ff;

}

.selected-demo {
  color: #e64b3b;
}

.unselected-demo {
  color: #b2b1af;
}

.add-child-menu {
  padding: 10px;

  .child-menu-item {
    margin-top: 15px;
    padding-top: 15px;
    padding-bottom: 15px;
    border: 1px solid #e3e2e5;
    border-radius: 4px;
    background: rgb(227, 226, 229, 20%);
    cursor: all-scroll;

    .el-icon-circle-close {
      right: 0;
      top: 0;
      font-size: 20px;
      color: #9c9c9c;
    }
  }
}

.add-nav-item {
  background: #fff;
  border: 1px dashed #e3e2e5;
  border-radius: 4px;
  font-size: 12px;
  color: #595961;
  cursor: pointer;
  height: 60px;
  width: 96%;
  margin: 0 auto;
  line-height: 60px;
  text-align: center;

  &.child-menu {
    height: 40px;
    line-height: 40px;
  }

  &:hover {
    color: #2589ff;
    background: #e9f3ff;
    border: 1px solid #b2d5ff;
    border-radius: 4px;
  }
}

.color-pop-box {
  font-size: 12px;

  .color-title {
    margin-bottom: 10px;
  }
}

.color-style-item {
  width: 20px;
  height: 20px;
  line-height: 20px;
  background-color: #d92322;
  border-radius: 4px;
  margin-right: 15px;
  cursor: pointer;
  text-align: center;
  color: #fff;
  border: 1px solid #e3e2e5;

  .el-icon-check {
    font-size: 18px;
  }
}

.navbar {
  position: absolute;
  bottom: $suspensionBoxBottom;
  right: $suspensionBoxRight;
  width: 40px;
  height: 40px;
  line-height: 40px;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
  text-align: center;
  color: #222;
  transition: 0.28s 0.1s;
  display: flex;
  justify-content: center;

  .navbar-content {
    border-radius: 50%;
    width: 40px;
    height: 40px;
    line-height: 40px;
  }

  .op-menu {
    position: absolute;
    // top: calc(#{$opMenuTop} * -42px);
    top: $opMenuTop;
    width: 36px;
    display: flex;
    flex-direction: column-reverse;
    font-size: 18px;
    transform: scale(1);
    transition: transform 1.4s 0.07s;

    .op-menu-item {
      // position: absolute;
      // top: -20px;
      // left: -20px;
      // transform-origin: 70px 70px;
      // transition: all 0.5s 0.1s;
      background: #ffffff;
      color: #9c9c9c;
      width: 100%;
      height: 36px;
      border-radius: 50%;
      border: 1px #efefef solid;
      box-shadow: 0px 0px 8px #efefef;
      margin-bottom: 4px;
      display: flex;
      align-items: center;
      justify-content: center;

      .op-menu-content {
        width: 35px;
        height: 35px;
        line-height: 35px;
        border-radius: 50%;
        background-color: rgba(34, 34, 34, 0.44);
        font-size: 18px;
        color: #fff;

        .image {
          height: 24px;
          width: 24px;
          margin-top: 5px;
        }
      }

      svg {
        width: 70%;
        height: 70%;
      }
    }
  }
}

.navbar-content {
  // background-color: #ff4949;
  border-radius: 50%;
  font-size: 24px;
  color: #fff;
  font-weight: bold;
}

.open-col {
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 140px;
  height: 40px;
  border-radius: 20px;
  box-sizing: border-box;
  background: #404040;
  color: #fff;

  .must-type {
    display: none;
  }

  &:hover, &:active {
    .must-type {
      display: block;
    }
  }

  .icon-tab {
    font-size: 20px;
  }

  .navbar-content {
    left: 50%;
    transform: translateX(-50%);
    top: -10px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 4px solid #404040;
  }

  .open-top-ico {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background-color: rgba(34, 34, 34, 0.44);
    top: -40px;
    &.open-top-4 {
      right: 10px;
    }
  }

  .col-icon-con {
    top: 50%;
    transform: translateY(-50%);

    &.left-ico {
      left: 15px;
    }

    &.right-ico {
      right: 15px;
    }
  }
}

// 子导航
.subkeyBox {
  width: 96%;
  height: 135px;
  margin: 0 auto 10px;
  border: 1px #e3e2e5 solid;
  border-radius: 6px;
  background-color: #ffffff;
  padding: 8px 10px;
  position: relative;

  .cancel {
    cursor: pointer;
    position: absolute;
    top: 0;
    right: 0;
    width: 20px;
    height: 20px;
    line-height: 20px;
    font-size: 16px;
  }

  .titleBox {
    display: flex;
    align-items: center;
    width: 100%;
    height: 30px;
    padding: 4px 0;
    margin-bottom: 6px;

    .checkBox {
      display: flex;
      align-items: center;
      width: 10%;
      height: 100%;
      margin-right: 10px;
      background-color: #fff;

      .checkcen {
        margin: 0 auto;
      }
    }

    .SubnavigationName {
      color: #9c9c9c;

      input {
        height: 30px;
        width: 60%;
      }
    }
  }

  .inputH input {
    height: 30px;
    width: 120px;
  }
}

// 暴露变量
:export {
  suspensionBoxBottom: $suspensionBoxBottom;
  suspensionBoxRight: $suspensionBoxRight;
  opMenuTop: $opMenuTop
}
